package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling  // 开启定时任务注解
@MapperScan("com.example.dao")
@SpringBootApplication
@EnableAsync	//启动线程池
public class Application {

	public static void main(String[] args) {
		long startTime=System.currentTimeMillis();
		SpringApplication.run(Application.class, args);
		long endTime=System.currentTimeMillis();
		System.out.printf("启动共耗时："+(endTime-startTime)+"ms");
	}

}